//
//  UserInfo.m
//  NewsReader
//
//  Created by zhouxiaobo on 15/11/2.
//  Copyright © 2015年 mapath. All rights reserved.
//

#import "UserInfo.h"

@implementation UserInfo

+ (instancetype)infoFromDict:(NSDictionary *)dict{
    UserInfo *info = [[UserInfo alloc]init];
    
    info.ID = [dict objectForKey:@"id"];
    info.name = [dict objectForKey:@"name"];
    info.token = [dict objectForKey:@"token"];
    
    return info;
}

@end
